<!--
 * @LastEditors: 七七
 * @Date: 2023-01-11 10:03:40
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>数组的遍历</title>
  </title>
</head>

<body>
  <script>
    var arr = ['a', 'b', 'c', 'd'];

    // 遍历数组，就是把数组中的所有元素都取出来
    for (const value of arr) {
      console.log(value); //a b c d
    }
  </script>
</body>

</html>